﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using jqGrid.Models.NorthWind;

namespace jqGrid.Repositories.NorthWind
{
    public class CategoriesRepository : ICategoriesRepository
    {
        #region Fields
        NorthWindDataContext _dataContext = new NorthWindDataContext();
        #endregion

        #region ICategoriesRepository Members
        public IQueryable<Category> GetCategories()
        {
            return _dataContext.Categories.OrderBy("CategoryName");
        }
        #endregion
    }
}